package com.soin.smc.models.domain;

import com.soin.smc.common.annotation.Excel;
import com.soin.smc.common.core.domain.TreeEntity;
import lombok.Data;

/**
 * 区划信息对象 tb_district
 *
 * @author adinlead
 * @date 2023-03-02
 */
@Data
public class District extends TreeEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Excel(name = "主键ID")
    private Long id;

    /**
     * 区划命名
     */
    @Excel(name = "区划命名")
    private String named;

    /**
     * 区划描述
     */
    @Excel(name = "区划描述")
    private String descr;

    /**
     * 层级
     */
    private Long stratum;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private Long typed;

    public District putId(Long id) {
        this.id = id;
        return this;
    }

    public District putNamed(String named) {
        this.named = named;
        return this;
    }

    public District putDescr(String descr) {
        this.descr = descr;
        return this;
    }

    public District putStratum(Long stratum) {
        this.stratum = stratum;
        return this;
    }

    public District putTyped(Long typed) {
        this.typed = typed;
        return this;
    }

}
